Skip to content

move telemetry code to helix-telemetry project #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Apr 11, 2025

Conversation

imranq2
Copy link
Collaborator

@imranq2 imranq2 commented Mar 28, 2025

Key Changes:

  1. Updated dependencies:

    • Upgraded helix.fhir.client.sdk from 3.0.38 to 4.0.3
    • Added helixtelemetry package (version 1.0.0)
    • Removed several OpenTelemetry instrumentation packages
  2. Telemetry-related changes:

    • Removed the entire spark_pipeline_framework/utilities/telemetry/ directory
    • Replaced local telemetry implementations with imports from helixtelemetry
    • Updated import statements in multiple files to use helixtelemetry instead of local telemetry modules

Code Review Comments:

  1. The changes look clean and systematic. The project is migrating from a custom telemetry implementation to using the helixtelemetry package.

  2. The dependency changes make sense:

    • Removing redundant OpenTelemetry instrumentation packages
    • Adding a centralized telemetry package
    • Upgrading the FHIR client SDK
  3. The import replacements are consistent across files:

    # Old import
    from spark_pipeline_framework.utilities.telemetry.telemetry_parent import TelemetryParent
    
    # New import
    from helixtelemetry.telemetry.structures.telemetry_parent import TelemetryParent

@imranq2 imranq2 requested a review from Copilot April 7, 2025 16:20
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 71 out of 74 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • pre-commit-hook: Language not supported
  • setup.cfg: Language not supported
  • spark.Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

spark_pipeline_framework/progress_logger/progress_logger.py:51

  • The stub implementations for mlflow methods (such as log_metric, log_param, and log_artifact) are now replaced with 'pass', which may lead to silent failures if these methods are still called. If mlflow integration is no longer needed, consider removing these methods and all associated mlflow configuration to prevent confusion.
pass

spark_pipeline_framework/register.py:4

  • [nitpick] Since register() is invoked in multiple locations throughout the codebase, ensure that its implementation is idempotent so that repeated calls do not lead to unintended side effects.
def register() -> None:

@imranq2 imranq2 requested a review from Copilot April 11, 2025 00:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 73 out of 76 changed files in this pull request and generated 1 comment.

Files not reviewed (3)
  • pre-commit-hook: Language not supported
  • setup.cfg: Language not supported
  • spark.Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

spark_pipeline_framework/transformers/fhir_receiver/v1/fhir_receiver_helpers.py:1090

  • [nitpick] The variable name 'resources1' is ambiguous; consider renaming it to a more descriptive name such as 'fhir_resources' to improve clarity.
resources1: FhirResourceList = result.get_resources()

spark_pipeline_framework/progress_logger/progress_logger_run.py:42

  • [nitpick] The removal of 'end_mlflow_run' logic (replaced by 'pass') might lead to silent failures if MLflow run termination is still expected. Consider adding a clarifying comment or alternate logic if this removal is intentional.
pass

"sqlalchemy>=1.4.37",
"sqlparse>=0.5.3",
"bounded-pool-executor>=0.0.3",
"fastjsonschema>=2.18.0",
"helix.fhir.client.sdk>=3.0.38",
"helix.fhir.client.sdk>=4.1.0",
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description indicates an upgrade to version 4.0.3 of helix.fhir.client.sdk, but setup.py specifies '>=4.1.0'. Please confirm and align the intended version.

Suggested change
"helix.fhir.client.sdk>=4.1.0",
"helix.fhir.client.sdk>=4.0.3",

Copilot uses AI. Check for mistakes.

@imranq2 imranq2 merged commit f44d6f7 into master Apr 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants